text/template/parse.lexer.pos (field)

49 uses

	text/template/parse (current package)
		lex.go#L119: 	pos         Pos       // current position in the input
		lex.go#L132: 	if int(l.pos) >= len(l.input) {
		lex.go#L136: 	r, w := utf8.DecodeRuneInString(l.input[l.pos:])
		lex.go#L138: 	l.pos += l.width
		lex.go#L154: 	l.pos -= l.width
		lex.go#L156: 	if l.width == 1 && l.input[l.pos] == '\n' {
		lex.go#L163: 	l.items <- item{t, l.start, l.input[l.start:l.pos], l.startLine}
		lex.go#L164: 	l.start = l.pos
		lex.go#L170: 	l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L171: 	l.start = l.pos
		lex.go#L253: 	if x := strings.Index(l.input[l.pos:], l.leftDelim); x >= 0 {
		lex.go#L255: 		l.pos += Pos(x)
		lex.go#L257: 		if hasLeftTrimMarker(l.input[l.pos+ldn:]) {
		lex.go#L258: 			trimLength = rightTrimLength(l.input[l.start:l.pos])
		lex.go#L260: 		l.pos -= trimLength
		lex.go#L261: 		if l.pos > l.start {
		lex.go#L262: 			l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L265: 		l.pos += trimLength
		lex.go#L269: 	l.pos = Pos(len(l.input))
		lex.go#L271: 	if l.pos > l.start {
		lex.go#L272: 		l.line += strings.Count(l.input[l.start:l.pos], "\n")
		lex.go#L286: 	if hasRightTrimMarker(l.input[l.pos:]) && strings.HasPrefix(l.input[l.pos+trimMarkerLen:], l.rightDelim) { // With trim marker.
		lex.go#L289: 	if strings.HasPrefix(l.input[l.pos:], l.rightDelim) { // Without trim marker.
		lex.go#L302: 	l.pos += Pos(len(l.leftDelim))
		lex.go#L303: 	trimSpace := hasLeftTrimMarker(l.input[l.pos:])
		lex.go#L308: 	if strings.HasPrefix(l.input[l.pos+afterMarker:], leftComment) {
		lex.go#L309: 		l.pos += afterMarker
		lex.go#L314: 	l.pos += afterMarker
		lex.go#L322: 	l.pos += Pos(len(leftComment))
		lex.go#L323: 	i := strings.Index(l.input[l.pos:], rightComment)
		lex.go#L327: 	l.pos += Pos(i + len(rightComment))
		lex.go#L336: 		l.pos += trimMarkerLen
		lex.go#L338: 	l.pos += Pos(len(l.rightDelim))
		lex.go#L340: 		l.pos += leftTrimLength(l.input[l.pos:])
		lex.go#L348: 	trimSpace := hasRightTrimMarker(l.input[l.pos:])
		lex.go#L350: 		l.pos += trimMarkerLen
		lex.go#L353: 	l.pos += Pos(len(l.rightDelim))
		lex.go#L356: 		l.pos += leftTrimLength(l.input[l.pos:])
		lex.go#L399: 		if l.pos < Pos(len(l.input)) {
		lex.go#L400: 			r := l.input[l.pos]
		lex.go#L445: 	if hasRightTrimMarker(l.input[l.pos-1:]) && strings.HasPrefix(l.input[l.pos-1+trimMarkerLen:], l.rightDelim) {
		lex.go#L464: 			word := l.input[l.start:l.pos]
		lex.go#L580: 		return l.errorf("bad number syntax: %q", l.input[l.start:l.pos])
		lex.go#L584: 		if !l.scanNumber() || l.input[l.pos-1] != 'i' {
		lex.go#L585: 			return l.errorf("bad number syntax: %q", l.input[l.start:l.pos])